import http from './request'
const addpeople=params=>http.post('/api/userinfo/add',params)
const lis=params=>http.get('/api/administratorrole/list',params)
const amendqwe=params=>http.post('/api/userinfo/add',params)
const add=params=>http.post('/api/houses/add',params)
const pishan = params => http.post('/api/news/deleteall',params)//多删
const gitList = params => http.get('/api/news/list',params)//公告列表
const getList =params =>http.get('/api/news/list',params)
const delects=params=>http.post('/api/stores/deleteall',params)
const Storied = () =>http.get('/api/building/list')//楼栋列表
const FormData = params => http.post('/estate/api/news/add',params)//公告添加
const getdata=params=>http.get('/api/administrator/list',params)
const shop = () =>http.get('/api/stores/list')//获取门店
const amend=params=>http.post('/api/userinfo/add',params)
const juese=()=>http.get('/api/administratorrole/add')
const getAdminList = params => http.get('/api/news/list', params)
const deletes = params => http.post('/api/userinfo/deleteall', params)
const delectTable = params => http.post('/api/staff/deleteall',params)//职员批删
const addItem = params => http.post('/api/staff/add', params)//职员添加
const baoxiudele=params=>http.post('/api/repairs/deleteall',params)
const  getadd= params =>http.post('/api/stores/add',params)
const postadd=params =>http.post('/api/administrator/add',params)//管理员添加
const getdelete=params =>http.post('/api/administrator/delete',params)//管理员添加
const buildingList =  params => http.get('/api/building/list', params) // 列表
const buildingAdd =  params => http.get('/api/building/add', params) // 添加
const buildingDelete =  params => http.get('/api/building/delete', params) // 删除
const addjuese=params=>http.post('/api/administratorrole/add',params)
const delectss=params=>http.post('/api/userinfo/deleteall',params)
export{
    add,
    gitList,
    getList,
    delects,
    Storied,
    shop,
    addpeople,
    lis,
    amendqwe,
    juese,
    amend,
    pishan,
	FormData,
	getAdminList,
    deletes,
    delectTable,
    addItem,
    baoxiudele,
    getdata,
    getadd,
    postadd,
    getdelete,
    buildingList,
    buildingAdd,
    buildingDelete,
    addjuese,
    delectss
}

export default {

}
